/*
 * @Author: 追逐的娃 kangchao_php@163.com
 * @Date: 2024-07-30 09:38:24
 * @LastEditors: 追逐的娃 kangchao_php@163.com
 * @LastEditTime: 2024-07-30 09:57:23
 * @FilePath: \vue-project\src\language\index.js
 * @Description: 
 * 
 */
import { createI18n } from 'vue-i18n'
//语言包
import zhCn from './langs/cn'
import en from './langs/en'
// import { useLangStore } from '@/stores'
// const lang = useLangStore()

// console.log(lang, 'lange')

const i18n = createI18n({
    legacy: false, //设置成false,启用composition Api模式
    // locale: lang.currentLang || 'zhCn', //当前语言
    messages: {
        zhCn,
        en
    }
})
export default i18n